# @Time    :2025/4/1 16:43
try:
    with open("test.txt", "w")as file:
        file.write(a)
finally:
    print("文件是否关闭：",file.closed)